package com.zbkj.service.dao.mszs;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zbkj.common.model.mszs.MszsOrder;
import com.zbkj.common.request.mszs.MszsOrderSearchRequest;
import com.zbkj.common.request.mszs.MszsRoomSelectRequest;
import com.zbkj.common.response.mszs.MszsOrderResponse;
import com.zbkj.common.response.mszs.MszsRoomOrderResponse;

import java.util.List;

/**
 * 民宿助手-订单表-Mapper接口
 * @author lingfe
 */
public interface MszsOrderDao extends BaseMapper<MszsOrder> {

    /**
     * 根据订单id 获取订单详情
     * @return
     */
    MszsRoomOrderResponse OrderDetails(Integer orderId);

    /**
     * 根据房间id 获取订单记录
     * @return
     */
    List<MszsRoomOrderResponse> selecRoomOrders(MszsRoomSelectRequest request);


    /**
     * 根据房间id 获取最新一条入住记录
     * @return
     */
    MszsRoomOrderResponse selectOrder(int roomId);


    /**
     * 酒店订单列表
     * @return
     */
    List<MszsOrderResponse> listOrder(MszsOrderSearchRequest request);

}
